Skip to content

Improve exception diagnostics for stdio client#376

Merged
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:stdiodiag
May 14, 2025
Merged

Improve exception diagnostics for stdio client#376
stephentoub merged 2 commits intomodelcontextprotocol:mainfrom
stephentoub:stdiodiag

Conversation

@stephentoub
Copy link
Contributor

@stephentoub stephentoub commented May 1, 2025

Closes #362

@stephentoub stephentoub requested a review from halter73 May 1, 2025 22:16
Track the last several lines of stderr and include those in an exception created as part of CleanupAsync if the server process has already exited. This is based on an assumption that the server should never exit prior to CleanupAsync being called.
@stephentoub stephentoub merged commit c11c634 into modelcontextprotocol:main May 14, 2025
7 checks passed
@stephentoub stephentoub deleted the stdiodiag branch May 14, 2025 14:46
@jeffhandley jeffhandley added the breaking-change This issue or PR introduces a breaking change label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change This issue or PR introduces a breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide better diagnostics than "The server shut down unexpectedly."

3 participants